package com.cooge.jiexi;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

public class MD5 {
	
	 public static String a(String paramString)
	  {
	    try
	    {
	    	MessageDigest localObject = MessageDigest.getInstance("MD5");
	      ((MessageDigest)localObject).reset();
	      ((MessageDigest)localObject).update(paramString.getBytes());
	      StringBuilder  paramString_ = new StringBuilder();
	      byte[] localObject_ = ((MessageDigest)localObject).digest();
	      int j = localObject_.length;
	      int i = 0;
	      while (i < j)
	      {
	        int k = localObject_[i] & 0xFF;
	        if (k < 16) {
	        	paramString_.append("0");
	        }
	        paramString_.append(Integer.toHexString(k));
	        i += 1;
	      }
	      paramString = paramString.toString();
	      return paramString;
	    }
	    catch (NoSuchAlgorithmException paramString1) {}
	    return "000000000000000000000000000000000000";
	  }
	 
	 public static void main(String[] args) {
		System.out.println(MD5.a("123"));
	}

}
